import request from '../utils/request'

export const findBrand = (limit) => {
  return request('/home/brand', 'get', { limit })
}
/**
 * 获取广告图
  * returns Promise
 */
export const findBanner = () => {
  return request('/home/banner', 'get')
}

// 首页主体-新鲜好物
export const findNew = () => {
  return request('home/new', 'get')
}

// 首页主体-人气推荐
export const findHot = () => {
  return request('home/hot', 'get')
}

// 首页主体-商品区块
export const findGoods = () => {
  return request('home/goods', 'get')
}

// 首页主体-专题区块
export const findSpecial = () => {
  return request('home/special', 'get')
}
